package site.teamo.biu.flink.web.exception;

import lombok.Getter;

/**
 * @author haocongshun
 * @date 2022/1/12 19:45
 */
public class BiuRuntimeException extends RuntimeException {

    @Getter
    private final int code;

    public BiuRuntimeException(int code, String message) {
        super(message);
        this.code = code;
    }

    public BiuRuntimeException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }
}
